/**
 * 作者: hwp
 * 日期: 2025-05-16 15:57:13
 * 备注: 联盟地标装饰表
 */
package com.motu.monstercity.server.game.commondata.union;

import io.vertx.core.json.JsonObject;

public class UnionDecorationModel {
    protected int id; // 装饰id
    protected int need; // 解锁所需联盟资金
    protected int skill; // 对应性格英雄实力+{0} ((固定值加成))

    public UnionDecorationModel() {
    }

    public UnionDecorationModel(JsonObject obj) {
        id = obj.containsKey("id") ? obj.getInteger("id") : 0;
        need = obj.containsKey("need") ? obj.getInteger("need") : 0;
        skill = obj.containsKey("skill") ? obj.getInteger("skill") : 0;
    }

    public int getId() {
        return id;
    }

    public int getNeed() {
        return need;
    }

    public int getSkill() {
        return skill;
    }

}
